Selecting Test Cases for Object Oriented Programs
نویسنده
چکیده
Testing is used to assess the correctness of a program by running the program against a set of test data. The main problem in testing is that only a tiny fraction of the possible inputs of a program can be used to test it. Test selection techniques choose the test cases using models of the program and the bug distribution. Many different test selection techniques have been proposed. Each test selection technique has its own strengths and weaknesses. No one technique can be used by itself. Rather, an effective testing methodology must use several different techniques together. A framework is needed to relate the strengths and weaknesses of different test selection techniques, and understand how to combine different ideas and techniques. There is a real need to understand the relation between testing techniques at different levels of abstraction, the unit, integration and system levels. The unit level has the greatest ability to control the execution and observe faults of the unit. However, it does not give information about the correct behaviour of the system as a whole. The system level can give this information, but because it has little ability to control the execution, it leaves much code untested. Another area of need is in developing new testing techniques for object-oriented programs. Object-oriented programs are structured differently than non-objectoriented programs, so they have different program models, and different distributions of bugs. Much work is being done to extend traditional testing techniques to object-oriented programs. Object-oriented programs have a simple relationship between behaviour of units and the system: units are objects, and the system is composed of communicating objects. The focus of my work is to take advantage of the object-oriented structure to relate the coverage of different levels of testing. The goal is to obtain better quality of testing overall.
منابع مشابه
The Event-Flow Technique for Selecting Test Cases for Object-Oriented Programs
We present a technique, termed event-flow, for selecting system level test cases using a hierarchical state machine model of the system. The strategy is to require test cases which stress the interactions between related events rather than to simply exercise each transition in the model. Event-flow selects test cases which are functionally meaningful to the system level tester.
متن کاملA Strategy for Selecting Synchronization Sequences to Test Concurrent Object-Oriented Software
Testing is the most commonly used approach to the assurance of software quality and reliability. The testing of object-oriented software is much more complex than that of conventional programs. Although we proposed previously a method called TACCLE for testing objectoriented software at the class and cluster levels, it did not cover concurrent or non-deterministic situations. 123 This paper put...
متن کاملState-Based Testing and Inheritance
State-based testing is a new technique developed for the testing of object-oriented programs. It compliments the more traditional approaches of functional and structural testing. The features of a class provide the desired behaviour by interacting with the data-representation. Although these interactions are found in programs written in more traditional languages, they are more visible and prev...
متن کاملSelecting Regression Tests for Object-Oriented Software
Regression testing is an important but expensive software maintenance activity aimed at providing con-dence in modiied software. Selective retest methods reduce the cost of regression testing by selecting tests for a modiied program from a previously existing test suite. Many researchers have addressed the selective retest problem for procedural-language software, but few have addressed the pro...
متن کاملRegression Test Selection for C++ Software
Regression testing is an important but expensive software maintenance activity performed with the aim of providing confidence in modified software. Regression test selection techniques reduce the cost of regression testing by selecting test cases for a modified program from a previously existing test suite. Many researchers have addressed the regression test selection problem for procedural lan...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1996